package com.atguign.gulimall.product.feign.fallback;

import com.atguign.gulimall.product.feign.SeckillFeifnService;
import com.atguigu.common.exception.BizCodeEnume;
import com.atguigu.common.utils.R;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
@Slf4j
@Component
public class SeckillFeignServiceFallBack implements SeckillFeifnService {
    @Override
    public R getSeckillSkuInfo(Long skuIf) {
        log.error("请求失败->触发熔断");
        return R.error(BizCodeEnume.TOOL_MANY_REQUEST.getCode(), BizCodeEnume.TOOL_MANY_REQUEST.getMsg());
    }
}
